package ws.utils.collections.table;

/**
 * LaTex representation of the column.
 *
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public class ColumnLatex extends Column {

  /**
   * Create new instance.
   *
   * @param contents column contents.
   */
  public ColumnLatex(String name, String contents) {
    super(name, contents);
  }

  /**
   * Create mew instance from other column.
   * 
   * @param col other column.
   */
  public ColumnLatex(Column col) {
    super(col.name, col.content);
  }

  /**
   * LaTex representation of this column.
   *
   * @return LaTex code.
   */
  @Override
  public String toString() {
    return content.toString().trim();
  }
}
